package com.pz.cloud.framework.business.student.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.pz.cloud.framework.base.model.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @Description: 学生
 * @Author: jeecg-boot
 * @Date:   2020-11-28
 * @Version: V1.0
 */
@Data
@TableName("student")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="student对象", description="学生")
public class Student extends BaseEntity {
	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
	@Excel(name = "用户id", width = 15)
	@ApiModelProperty(value = "用户id")
	private String userId;
	/**学生编号*/
	@Excel(name = "学号", width = 15)
    @ApiModelProperty(value = "学号")
    private String stdNo;
	/**姓名*/
	@Excel(name = "姓名", width = 15)
    @ApiModelProperty(value = "姓名")
    private String name;
	/**学院*/
	@Excel(name = "学院", width = 15)
    @ApiModelProperty(value = "学院")
    private String college;
	/**专业*/
	@Excel(name = "专业", width = 15)
    @ApiModelProperty(value = "专业")
    private String major;
	/**年级*/
	@Excel(name = "年级", width = 15)
    @ApiModelProperty(value = "年级")
    private String grade;
	/**班级*/
	@Excel(name = "班级", width = 15)
    @ApiModelProperty(value = "班级")
    private String clazz;
	/**性别*/
	@Excel(name = "性别", width = 15)
	@Dict(dicCode = "sex")
    @ApiModelProperty(value = "性别")
    private Integer sex;

	/**入学时间*/
	@Excel(name = "入学时间", width = 15)
    @ApiModelProperty(value = "入学时间")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date entranceTime;

	@Excel(name = "身份证号", width = 15)
	@ApiModelProperty(value = "身份证号")
	private String idCard;

	/**政治面貌*/
	@Excel(name = "政治面貌", width = 15, dicCode = "political_outlook")
	@Dict(dicCode = "political_outlook")
	@ApiModelProperty(value = "政治面貌")
	private String politicalStatus;

	/**手机号*/
	@Excel(name = "手机号", width = 15)
	@ApiModelProperty(value = "手机号")
	private String phone;
}
